home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / FireMan.swf / scripts / frame_1114 / PlaceObject2_692_7 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2008-09-12  |  521b  |  37 lines

  1. onClipEvent(enterFrame){
  2.    if(c < DELAY)
  3.    {
  4.       c++;
  5.       if(dy < MAX)
  6.       {
  7.          dy += (20 - dy) / 20;
  8.       }
  9.       if(c >= DELAY)
  10.       {
  11.          detener = true;
  12.       }
  13.    }
  14.    if(detener)
  15.    {
  16.       if(dy > MIN)
  17.       {
  18.          dy += (- dy) / 40;
  19.       }
  20.       else
  21.       {
  22.          detenido = true;
  23.          detener = false;
  24.       }
  25.    }
  26.    if(detenido)
  27.    {
  28.       dy = 0;
  29.       _root.locks = false;
  30.    }
  31.    _Y = _Y + dy;
  32.    if(_Y > 240)
  33.    {
  34.       _Y = -1;
  35.    }
  36. }
  37.